#include "ManProduct.h"
#include "Main_config.h"
#include "stdio.h"

BOOL ManProduct::SetParam(WORD memId, Ndata* pSrcParam) {
	switch (memId) {
		case ADDR_PRODUCT_SN: {
			DWORD sn= pSrcParam->GetDword();
			//printf("%d", sn);
			break;
		}
	}
	return true;
}


BOOL ManProduct::GetParam(WORD memId, Ndata* pDstParam) {

	switch (memId)
	{
		//class
		case 0: {
			pDstParam->SetDataBody(STR_TYPE, "Product", 16);
			break;
		}
		//model
		case 1: {
			pDstParam->SetDvb(Int2Dvb(1700));
			break;
		}
		//rev
		case 2: {
			pDstParam->SetDvb(Int2Dvb(0));
			break;
		}//osver
		case 3: {
			pDstParam->SetDvb(Float2Dvb(0.80,2));
			break;
		}//sn
		case 4: {
			pDstParam->SetDvb(Int2Dvb(2801700));
			break;
		}
		//client
		case 5: {
			pDstParam->SetDvb(Int2Dvb(2801700));
			break;
		}
		//manufacturer
		case 6: {
			pDstParam->SetDataBody(STR_TYPE, "LANGJIE", 16);
			break;
		}
		//device
		case 7: {
			pDstParam->SetDataBody(STR_TYPE, "my_d700", 16);
			break;
		}
		default:
			break;
	}

	return true;
}

